echo " Installing SSH and FTP login."
echo " Please be patient..."
echo -e "\e[00;36m-------------------------------------------------------------------------------\e[00m"
echo ""

#Set up an ssh and sftp server (allows you to get in from the host machine) 
tce-load -wi dropbear > /dev/null
tc tce-load -wi sftp-server > /dev/null

# Load custom files
cd /opt/
wget http://tinycorelinux-scripts.googlecode.com/svn/trunk/ingredients/core_services/.xfiletool.lst
echo -e "opt/.xfiletool.lst" >> /opt/.filetool.lst

# Dropbear set-up
cd /etc/dropbear/
wget http://tinycorelinux-scripts.googlecode.com/svn/trunk/ingredients/core_services/dropbear_dss_host_key
wget http://tinycorelinux-scripts.googlecode.com/svn/trunk/ingredients/core_services/dropbear_rsa_host_key
echo -e "etc/rc.local\netc/init.d/dropbear\netc/dropbear\nusr/bin/dbclient\nusr/bin/dropbear\nusr/bin/dropbearconvert\nusr/bin/dropbearkey\nusr/bin/scp\nusr/bin/ssh\nusr/sbin/dropbearmulti" >> /opt/.filetool.lst

#Set up a password for tc user (necessary for sftp and other remote tools)
passwd tc
echo -e "etc/passwd\netc/shadow" >> /opt/.filetool.lst

# Backup
filetool.sh -b >> /dev/null